package com.iursp.domain.model.role;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.springframework.data.annotation.Id;


@Entity
@Table(name = "auth_resource")
public class AuthResource {

	@Id
	private String refid;
	/**
	 * 资源父节点
	 */
	@Column(name = "parent_refid")
	private String parentRefid;
	/**
	 * 如果为URL
	 */
	@Column(name = "resource_url")
	private String resourceUrl;
	/**
	 * 资源名称
	 */
	@Column(name = "resource_name")
	private String resourceName;
	/**
	 * 资源类型,如文件夹,URL
	 */
	@Column(name = "resource_type")
	private String resourceType;
	/**
	 * createDateTime 创建时间
	 */
	@Column(name = "create_date_time")
	private String createDateTime;
	/**
	 * 所属平台ID
	 */
	@Column(name = "platform_refid")
	private String platformRefid;

	/**
	 * 唯一标识
	 */
	@Column(name = "unique_code")
	private String uniqueCode;
	/**
	 * 图标样式
	 */
	@Column(name = "icon_class")
	private String iconClass;
	public String getParentRefid() {
		return parentRefid;
	}
	public void setParentRefid(String parentRefid) {
		this.parentRefid = parentRefid;
	}
	public String getResourceUrl() {
		return resourceUrl;
	}
	public void setResourceUrl(String resourceUrl) {
		this.resourceUrl = resourceUrl;
	}
	public String getResourceName() {
		return resourceName;
	}
	public void setResourceName(String resourceName) {
		this.resourceName = resourceName;
	}
	public String getResourceType() {
		return resourceType;
	}
	public void setResourceType(String resourceType) {
		this.resourceType = resourceType;
	}
	public String getCreateDateTime() {
		return createDateTime;
	}
	public void setCreateDateTime(String createDateTime) {
		this.createDateTime = createDateTime;
	}
	public String getPlatformRefid() {
		return platformRefid;
	}
	public void setPlatformRefid(String platformRefid) {
		this.platformRefid = platformRefid;
	}
	public String getUniqueCode() {
		return uniqueCode;
	}
	public void setUniqueCode(String uniqueCode) {
		this.uniqueCode = uniqueCode;
	}
	public String getIconClass() {
		return iconClass;
	}
	public void setIconClass(String iconClass) {
		this.iconClass = iconClass;
	}
	public String getRefid() {
		return refid;
	}
	public void setRefid(String refid) {
		this.refid = refid;
	}
	
}
